package com.ns.scs.collections.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.vo.bs.BasicVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serial;
import java.util.Date;

/**
 * 收藏响应实体
 *
 * @author liaowei
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class CollectionsVO extends BasicVO {

    @Serial
    private static final Long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 资源id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resourceId;

    /**
     * 资源名称
     */
    private String resourceName;

    /**
     * 图片
     */
    private String img;

    /**
     * 标签
     */
    private String tags;

    /**
     * 收藏资源类型
     */
    private String type;

    /**
     * 收藏人
     */
    private Long collector;

    /**
     * 收藏时间
     */
    private Date collectTime;
}
